vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   need this (https://vborg.vbsupport.ru/showthread.php?t=56339)

pogo4000 08-19-2003 04:35 PM

need this
 
i know this hack was made but dont know what to search for im looking for this http://www.wiredgamers.com/index.php?s= the hack so i can made a cat. like there Gaming Confabulation with the same layout like that with posts and name

thanks

wolfe 08-20-2003 01:29 AM

well heres the hakc you just need to mess about with the templates :D

https://vborg.vbsupport.ru/showthrea...threadid=41529

assassingod 08-20-2003 10:55 AM

1. Make sure you installed Xenons hack:
https://vborg.vbsupport.ru/showthrea...threadid=41529

2. Run this query:
[SQL]ALTER TABLE forum ADD forumimg VARCHAR(100) NOT NULL AFTER displayorder[/SQL]

3. Open admin/forum.php, find:
PHP Code:

  makeforumchooser("parentid",$parentid,-1,"","No one"); 

Add under:
PHP Code:

  makeinputcode("Forum Image</i><br>(your default images folder is added)","forumimg"); 

Find:
PHP Code:

countposts

Replace with
PHP Code:

countposts,forumimg

Find:
PHP Code:

'$countposts'

Replace with:
PHP Code:

'$countposts','$forumimg'


Find:
PHP Code:

maketableheader("Moderation Options"); 

Add above:
PHP Code:

  makeinputcode("Forum Image</i><br>(your default images folder is added)","forumimg",$forum[forumimg]); 

Find:
PHP Code:

moderateattach='$moderateattach' 

Replace with:
PHP Code:

moderateattach='$moderateattach'forumimg='$forumimg' 

Save forum.php

Open up root/index.php
Find:
PHP Code:

          if ($userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          }
        } 

After add:
PHP Code:

if ($forum['forumimg']) {
  eval(
"\$forumimg = \"".gettemplate('forumhome_forumimg')."\";");
}
else {
  
$forumimg '';


Add template 'forumhome_forumimg'
Code:

<img src="{imagesfolder}/$forum[forumimg]" border="0" alt="">
[high]Remove spaces[/high]

Open up template 'colforumbit'
Find:
Code:

          <a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>
        </td>

Replace with:
Code:

          <a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a><br />$forumimg
        </td>

Untested, should work:)

Blindchild02 09-14-2003 02:20 PM

uhhh i did it.. lol and where do i edit the picture? :|

Blindchild02 09-14-2003 02:28 PM

ok. well it only works when u ADD a forum, and u cant even edit it... :|

Hogwarts 09-14-2003 03:03 PM

umm ... what's the url I should put in the thing? everything I try I get a RED X? I have tired

http://hogwarts.enterxment.com/forum...s/Hogwarts.jpg

forumicons/Hogwarts.jpg

/forumicons/Hogwarts.jpg

Hogwarts.jpg

/Hogwarts.jpg

I just can't get this to work ... any ideas people?


- Hogwarts

assassingod 09-14-2003 05:52 PM

blindchild02;
This does work for Edit and Add for forum. You must have installed incorrectly

Hogwarts;
Since the src in the img tag is already linked to imagesfolder, you should just add the file name + ext.
If its in a sub folder of the images, do something like foldername/filename.ext

Blindchild02 09-14-2003 06:45 PM

ok i tried it again. now when i try to edit the image path... i get this..

Database error in vBulletin Control Panel 2.3.2:

Invalid SQL: UPDATE forum
SET
styleid='1', title='2D Graphics', description='Show off your 2D Work',
active='1', displayorder='1', parentid='19', parentlist='20,19,-1',
allowposting='1', cancontainthreads='1', daysprune='0',
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='0', allowbbcode='1',
allowimages='1', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1','2d_test.gif',
moderateattach='0', forumimg='2d_test.gif'
WHERE forumid='20'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''2d_test.gif',
moderateattach='0', forumi

mysql error number: 1064

Date: Sunday 14th of September 2003 09:46:40 PM
Script: http://www.xamira.net/forums/forums/admin/forum.php
Referer: http://www.xamira.net/forums/admin/f...dit&forumid=20

assassingod 09-14-2003 06:49 PM

Quote:

Originally Posted by Blindchild02
ok i tried it again. now when i try to edit the image path... i get this..

Database error in vBulletin Control Panel 2.3.2:

Invalid SQL: UPDATE forum
SET
styleid='1', title='2D Graphics', description='Show off your 2D Work',
active='1', displayorder='1', parentid='19', parentlist='20,19,-1',
allowposting='1', cancontainthreads='1', daysprune='0',
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='0', allowbbcode='1',
allowimages='1', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1','2d_test.gif',
moderateattach='0', forumimg='2d_test.gif'
WHERE forumid='20'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''2d_test.gif',
moderateattach='0', forumi

mysql error number: 1064

Date: Sunday 14th of September 2003 09:46:40 PM
Script: http://www.xamira.net/forums/forums/admin/forum.php
Referer: http://www.xamira.net/forums/admin/f...dit&forumid=20

If user.php has been edited very little times, upload a unhacked version and try again. It worked perfect for me

Blindchild02 09-14-2003 06:54 PM

user.php hasnt been edited At All

wouldnt it be a problem with forum.php??


All times are GMT. The time now is 08:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04017 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (12)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete