Dragonfly CMS v9 ⇒ CPG-BB (forum) ⇒ [solved] Removal of topic post online text ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index Modules & Blocks CPG-BB (forum)

[solved] Removal of topic post online text Reply to topic


Hi, busy trying to get setup for a conversion from ForumsPro to ForumsPlus (Forums?).

I need to add our mods, one of which is moving the online button, which I've done, but I can't for the life of me get rid of the word "online".

I've found the code, but keep breaking it trying to make it image only.

$online_img = ($postrow[$i]['user_session_time'] > gmtime()-300) && ($postrow[$i]['user_allow_viewonline'] || is_admin()) ? '<img src="'.$images['icon_online'].'" alt="'.$lang['Online'].'" title="'.$lang['Online'].'" /> '.$lang['Online'] : '<img src="'.$images['icon_offline'].'" alt="'.$lang['Offline'].'" title="'.$lang['Offline'].'" /> '.$lang['Offline'];

Any help greatly appreciated Very Happy

Heres an example on our test site.

jw.servegame.org/index...=1142#1142

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0


Just turn it off in the admin panel.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
linux / apache 2.2.22 / mysqli 5.6.34 / 7.1.22 / 10.0.48.9418+


Sorry, I didn't explain clear enough, I want it to show, but without the written word "online", just the image only.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0


$online_img = ($postrow[$i]['user_session_time'] > gmtime()-300) && ($postrow[$i]['user_allow_viewonline'] || is_admin()) ? '<img src="'.$images['icon_online'].'" alt="'.$lang['Online'].'" title="'.$lang['Online'].'" />' : '<img src="'.$images['icon_offline'].'" alt="'.$lang['Offline'].'" title="'.$lang['Offline'].'" />';

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
linux / apache 2.2.22 / mysqli 5.6.34 / 7.1.22 / 10.0.48.9418+


Thats perfect thanks. Have the images done, and skype displaying.

Just got to update the MultiRank Mod, add Xfire and Steam, and I should be ready to start dabbling in the database.

If i were to repost the MultiRank Mod would you be interested in looking at it? it seems a bit out of date compared against your latest forum version.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0

All times are UTC


Jump to: