![]() |
Quote:
how did you fix that ? i got the same error |
I have this set-up on the right side, here is the link to see.
Click here. Not that hard really. Fiber |
Werid. Everything should works fine but when I run "devbox_work.php" I get those phrase error.
|
Hi duno if any one has had this i installed the hack as the instrutions said and leaft every thing default all installed fine said it was ok but its not there and not showing in admin cp ither any idears guys
all the best sirblack |
Please can someone make the instructions to add this to the right side of the forum?
I really would like it there, but can't do it... Thanks |
Use the Adcolums hack or use the sidebar template mods over at VBTemplates.com. Then just move your code into the sidebar.
|
Can someone please install this for me on the right hand or left hand side of my forum?
$10 to the one who will... |
smooth install, works well. one problem with paths, but i fixed it.
|
what is the problem :(
PHP Code:
how i can fix this problem thanks |
what is the problem in line 180 !!!
up |
Quote:
First in FORUMHOME find: $navbar After add: PHP Code:
<!-- / icons and login code --> After add: PHP Code:
http://www.detailcity.com/index.php?s=&styleid=17 **he didn't want all the stuff on the right side, the code I am realeasing will show Top posters, Site statistics, latest threads, newest members, etc. |
Quote:
|
Quote:
can you give me your sites address? |
i have error in line 180 !!!
no body help my |
I'm getting the line 180 error as well. Any ideas what is going on here?
Also where would I find this FORUMHOME thing?? |
Guys the line 180 error is driving me crazy..... anyone can help?
|
what username and pass am i sopossed to use?
|
Trying now.
Btw minor spelling error at the last step, last sentence: "Everything fron turning it off..." :) EDIT: Hm, do I have to manually do those replacements? I get the same three errors (line 81 and 180) after following the install :ermm: |
OK. I looked again over the install and obviously I thought it will do the replacements on its own. So I did them and all worked. You should make it clear that these replacements have to be done by hand and place on a visible spot what file needs to be edited.
And I still get the errors with devbox_work.php EDIT: I think I found the problem - it's in us trying to open devbox_work.php as a page, whereas it's actually just a collection of functions that get included in the index.php page. There is no way it can be viewed separately. To change the settings you manually edit it and reupload it. |
Hi..
The script was running smoothly with me on my old version of VB (3.0.1).. but then I have decided to upgrade to 3.0.7.. and suddenly it stopped working.. any ideas? |
Hi,
Installed with no major problems, but how do I change the fonts used in this hack? Also Admins etc are not a different colour or bolded is there a way to to do this? Thanks |
i've installed this mod. Nice work:D
|
Installed but all the links are messed up - the posters, threads, and members are all listed correctly but if you click on them all the links are screwed up.
|
cannot get this to work on vb3.0.7
no matter where i add the code for forumhome it always goes to the bottom of the screen and looks such a mess - ive tried numerous other locations within forumhome and it wont go.So no sidebar down the side as yet. Anyone had better luck ? Quote:
|
Quote:
|
It's supposed to be at the bottom. The sidebar is just an addon.
I actuall prefer it at the bottom cause my boards are broad (long names of threads usually) and a sidebar would just waste space. |
now explain to me why u would want all that info at the bottom of you screen - its nearly half a scren long and u can get better results using animes top X stats which is in a box and has better stats.
|
I just checked that one and it really looks better, although I'll probably keep the devbox "who was online today" bit.
Or even better, try to merge them somehow to get most functionality. :) |
I have installed this successfully, but i'd like to have the info in all pages, i'm using a hack called ad column 1.0 which creates a template for the colum and then inserts it in the header i think.
I puted the devboxwork functions there and it doesn't show anything. maybe because it's inserted in an other template that is not FORUMHOME? any idea? Thanks in advance |
That must be it works inserted in FORUMHOME and not in footer or header.
How can set this so functions can be called from all templates? |
Is there someone how get it work with version v3.5 ?
A reinstall in 3.5 don't work. |
devbox-latest_threads_bit--{<b>$data[counter].</b>
<b><a href=\"showthread.php?$session[sessionurl]t=$data[threadid]\">$data[title]</a></b><br /> devbox-newest_members_bit-----{<b>$data[counter].</b> <a href=\"member.php?$session[sessionurl]u=$data[userid]\">$data[username]</a> on $data[date]<br /> devbox-online_today_bit--{<a href=\"member.php?$session[sessionurl]u=$data[userid]\">$data[opentag]$data[username]$data[closetag]$data[invisible]</a> devbox-top_posters_bit----{<b>$data[counter].</b> <a href=\"member.php?$session[sessionurl]$data[userid]\">$data[username]</a> with $data[posts] posts<br /> <?php // +-----------------------------------------------------------------------------+ // | devbox_work.php | // +-----------------------------------------------------------------------------+ // | Written by Christopher Nadeau | // | - www.DevBox.net, www.DevBoxForums.com [chris@devbox.net] | // +-----------------------------------------------------------------------------+ // | Copyright 2004 by Christopher Nadeau | // +-----------------------------------------------------------------------------+ // | RELEASED UNDER THE EvB license: | // | => Standard Attribution | // | => Limited Derivs | // | => Limited Translation | // | MORE INFO HERE: | // | => http://www.everythingvb.com/licenses/sa-ld-lt/1.0/ | // +-----------------------------------------------------------------------------+ // | TABLE OF CONTENTS | // | 1. CONFIGURATION: Config area, you should edit this area. | // | | // | 2. INTERPRETATION: Handles config, you should NOT edit ths area. | // | | // | 3. ADV. CONFIGURATION: Edit the SQL to use. You should only edit this | // | area if you know what your doing. | // | | // | 4. SCRIPT: The actual script. You should NOT edit this area. | // | | // | 5. MISC: Misc functions. You should NOT edit this area. | // +-----------------------------------------------------------------------------+ /************************************************** ******************************* 1. CONFIGURATION Each configuration value can be set to 'on', 'off', 1, 0, true or false. => 'on' - Activated => 'off' - Deactivated => 1 - Activated => 0 - Deactivated => true - Activated => false - Deactivated *_*_num: the number of values to retrieve. forum_ids: the forumid's of the forums you want to grab the latest threads from. You can set this to 'auto' to include all forums that the user has permission to see. Serparate each with a comma. Ex: - '1,8,19,20' - 'auto' ************************************************** *******************************/ $devbox_config = array( 'latest_threads' => 'on', 'latest_threads_num' => 10, 'newest_members' => 'on', 'newest_members_num' => 5, 'top_posters' => 'on', 'top_posters_num' => 5, 'online_today' => 'on', 'forum_ids' => 'auto', ); /************************************************** ******************************* 2. INTERPRETATION This section just interprets the config options, and ensures they're alright. You should skip this section and go onto #3 if you want. ************************************************** *******************************/ // Ensure all the right numbers are in place $devbox_config['latest_threads_num'] = (int) $devbox_config['latest_threads_num']; $devbox_config['newest_members_num'] = (int) $devbox_config['newest_members_num']; $devbox_config['top_posters_num'] = (int) $devbox_config['top_posters_num']; // Handle forum id's if($devbox_config['forum_ids'] == 'auto') { $devbox_config['forum_ids'] = array(); foreach(array_keys($forumcache) AS $forumid) { $fp = &$bbuserinfo['forumpermissions']["$forumid"]; if ($fp & CANVIEW AND $fp & CANVIEWOTHERS) { $devbox_config['forum_ids'][] = $forumid; } } $devbox_config['forum_ids'] = implode(',', $devbox_config['forum_ids']); unset($fp); } $TP = TABLE_PREFIX; /************************************************** ******************************* 3. ADVANCED CONFIGURATION These config values define what SQL should be used to grab the info from the database. Don't touch these if you don't know what your doing! You have to change these if you want information other then what is already provided. Use the variable $TP for table prefix if you don't want to get out of the quotes. ************************************************** ********************************/ $devbox_config['latest_threads_sql'] = "### devbox_work.php - grabbing latest threads ### SELECT t.threadid, t.title, t.replycount, t.views, t.lastposter, t.postusername, t.postuserid, f.forumid, f.title AS forumtitle FROM {$TP}thread t, {$TP}forum f LEFT JOIN {$TP}deletionlog AS del ON (del.primaryid = t.threadid AND del.type = 'thread') WHERE f.forumid = t.forumid AND f.forumid IN({$devbox_config['forum_ids']}) AND t.visible = 1 AND del.primaryid IS NULL ORDER BY t.threadid DESC LIMIT {$devbox_config['latest_threads_num']}"; $devbox_config['newest_members_sql'] = "### devbox_work.php - grabbing newest members ### SELECT u.userid, u.username, u.joindate, u.posts, g.opentag, g.closetag FROM {$TP}user u, {$TP}usergroup g WHERE g.usergroupid = u.usergroupid ORDER BY u.userid DESC LIMIT {$devbox_config['newest_members_num']}"; $devbox_config['top_posters_sql'] = "### devbox_work.php - grabbing top posters ### SELECT u.userid, u.username, u.posts, g.opentag, g.closetag FROM {$TP}user u, {$TP}usergroup g WHERE g.usergroupid = u.usergroupid ORDER BY u.posts DESC LIMIT {$devbox_config['top_posters_num']}"; $devbox_config['online_today_sql'] = "### devbox_work.php - grabbing online today ### SELECT u.userid, u.username, (u.options & {$_USEROPTIONS['invisible']}) AS invisible, g.opentag, g.closetag FROM {$TP}user u, {$TP}usergroup g WHERE g.usergroupid = u.usergroupid AND u.lastactivity >= " . (mktime(0, 0, 0) + (($bbuserinfo['timezoneoffset'] - $vboptions['timeoffset']) * 3600)) . " ORDER BY u.username ASC"; /************************************************** ******************************* 4. SCRIPT You shouldn't need to edit anything below this! ************************************************** *******************************/ $devbox = array('latest_threads' => '', 'newest_members' => '', 'online_today' => '', 'top_posters' => '', ); //-------------------------------------------------------------------------------- // Grab the 'latest threads' if(isOn('latest_threads')) { $devbox_latest_threads = $DB_site->query($devbox_config['latest_threads_sql']); $devbox_config['latest_threads_num'] = $DB_site->num_rows($devbox_latest_threads); $devbox_counter = 0; if($devbox_config['latest_threads_num'] < 1) { $devbox['latest_threads'] = 'No threads.'; } else { while($data = $DB_site->fetch_array($devbox_latest_threads)) { $data['counter'] = ++$devbox_counter; eval('$devbox[\'latest_threads\'] .= "' . fetch_template('devbox-latest_threads_bit') . '";'); } } $DB_site->free_result($devbox_latest_threads); unset($devbox_latest_threads, $devbox_counter, $data); } //-------------------------------------------------------------------------------- // Grab the 'lastest members' if(isOn('newest_members')) { $devbox_newest_members = $DB_site->query($devbox_config['newest_members_sql']); $devbox_config['newest_members_num'] = $DB_site->num_rows($devbox_newest_members); $devbox_counter = 0; while($data = $DB_site->fetch_array($devbox_newest_members)) { $data['counter'] = ++$devbox_counter; $data['date'] = vbdate($vboptions['dateformat'], $data['joindate'], false, true, false); eval('$devbox[\'newest_members\'] .= "' . fetch_template('devbox-newest_members_bit') . '";'); } $DB_site->free_result($devbox_newest_members); unset($devbox_newest_members, $devbox_counter, $data); } //-------------------------------------------------------------------------------- // Grab the 'online today' if(isOn('online_today')) { $devbox_online_today = $DB_site->query($devbox_config['online_today_sql']); $devbox_counter = 0; while($data = $DB_site->fetch_array($devbox_online_today)) { $data['counter'] = ++$devbox_counter; if($data['invisible']) { if(!($permissions['genericpermissions'] & CANSEEHIDDEN)) continue; else $data['invisible'] = '*'; } else $data['invisible'] = ''; eval('$devbox[\'online_today\'] .= "' . fetch_template('devbox-online_today_bit') . '";'); $devbox['online_today'] .= ', '; } $devbox['online_today'] = substr($devbox['online_today'], 0, (strlen($devbox['online_today']) - 3)); $devbox['online_today_num'] = $devbox_counter; $DB_site->free_result($devbox_online_today); unset($devbox_online_today, $devbox_counter, $data); //////////////////// if(!isset($datastore['maxonlinetoday'])) { $devbox['online_today_max'] = $devbox['online_today_num']; $devbox['online_today_maxwhen'] = mktime(); $devbox_ot['online_today_max'] = $devbox['online_today_max']; $devbox_ot['online_today_maxwhen'] = $devbox['online_today_maxwhen']; $devbox_ot = serialize($devbox_ot); $DB_site->query("### devbox_work.php - insert online today into datastore ### INSERT INTO {$TP}datastore (title, data) VALUES ('maxonlinetoday', '$devbox_ot')"); } else { $devbox_ot = unserialize($datastore['maxonlinetoday']); if($devbox_ot['online_today_max'] < $devbox['online_today_num']) { $devbox['online_today_max'] = $devbox['online_today_num']; $devbox['online_today_maxwhen'] = mktime(); $devbox_ot['online_today_max'] = $devbox['online_today_max']; $devbox_ot['online_today_maxwhen'] = $devbox['online_today_maxwhen']; $devbox_ot = serialize($devbox_ot); $DB_site->query("### devbox_work.php - update online today ### UPDATE {$TP}datastore SET data='$devbox_ot' WHERE title='maxonlinetoday'"); } else { $devbox['online_today_max'] = $devbox_ot['online_today_max']; $devbox['online_today_maxwhen'] = $devbox_ot['online_today_maxwhen']; } } $devbox['online_today_maxwhen'] = vbdate($vboptions['dateformat'], $devbox['online_today_maxwhen'], true, true, false); unset($devbox_it); } //-------------------------------------------------------------------------------- // Grab the 'top posters' if(isOn('top_posters')) { $devbox_top_posters = $DB_site->query($devbox_config['top_posters_sql']); $devbox_config['top_posters_num'] = $DB_site->num_rows($devbox_top_posters); $devbox_counter = 0; while($data = $DB_site->fetch_array($devbox_top_posters)) { $data['counter'] = ++$devbox_counter; eval('$devbox[\'top_posters\'] .= "' . fetch_template('devbox-top_posters_bit') . '";'); } $DB_site->free_result($devbox_top_posters); unset($devbox_top_posters, $devbox_counter, $data); } /************************************************** ******************************* 5. MISC Misc functions. You shouldnt edit this area. ************************************************** *******************************/ // check if config value to see if we should do something or not function isOn($what) { global $devbox_config; if(!isset($devbox_config["$what"])) return false; $val = $devbox_config["$what"]; if(is_string($val)) $val = strtolower($val); if($val === 'on' OR $val === 1 OR $val === true) { $devbox_config["$what"] = true; return true; } else { $devbox_config["$what"] = false; return false; } } ?> The boxes are on the side but it did not remove the default ones at the bottom and they are not updating but they do look like they are supposed to, I posted all I thought was needed any help would be great. Here is a link to my site if you need to look at it. http://www.bedrocksoriginaltavern.com/forums/index.php? |
Quote:
|
Quote:
I have the same problem. :cross-eyed: It's supposed to be at the bottom. But, there is no box at all. :tired: Where to look and to check? |
All times are GMT. The time now is 11:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|