vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

bnn121 10-23-2004 11:30 PM

I was woundering if I could get some help with this hack.


The problem is I have four styles

Purple is the defualt style

And the other three are just different colors of the defualt.

Well from looking at the postbit and postbit legacy templates they do not match the defualt template where the hack instructions says to modify.

Could somebody help me on adding this hack to the other three styles? It works like a champ on the first style which is the defualt...

I'm able to make the modification to the navbar in style two...and I'm able to modify the postbit and postbit legacy templates on style two...but when I click on the view users warning...I get a blank page.

Thanks

sv1cec 10-24-2004 05:07 AM

Quote:

Originally Posted by bnn121
I was woundering if I could get some help with this hack.


The problem is I have four styles

Purple is the defualt style

And the other three are just different colors of the defualt.

Well from looking at the postbit and postbit legacy templates they do not match the defualt template where the hack instructions says to modify.

Could somebody help me on adding this hack to the other three styles? It works like a champ on the first style which is the defualt...

I'm able to make the modification to the navbar in style two...and I'm able to modify the postbit and postbit legacy templates on style two...but when I click on the view users warning...I get a blank page.

Thanks

Bnn121,

I have no idea how the different styles work, but as far as I can tell, there is nothing that should prevent the hack from working with different styles. If you could upload here the postbit and postbit_legacy templates of your one of your other styles, I could have a look and see if we can do something, but as you understand, I have no way to test it.

Rgds

bnn121 10-24-2004 12:18 PM

Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.

I'm uploading the main postbit template and the main postbit_legacy template

Also uploading postbit and postbit_legacy template of one of the other styles.

The other two styles are all the same except for where they get there images from.

I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style?

I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the

View BNN121's Warnings

button. it takes me to a blank page.
I hope this helps.

sv1cec 10-24-2004 01:51 PM

Quote:

Originally Posted by bnn121
Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.

I'm uploading the main postbit template and the main postbit_legacy template

Also uploading postbit and postbit_legacy template of one of the other styles.

The other two styles are all the same except for where they get there images from.

I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style?

I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the

View BNN121's Warnings

button. it takes me to a blank page.
I hope this helps.

As I said, I am no expert in multi-style environments, my site has just one, so I am not able to help much. I have to assume a few things here, so correct me if I am wrong. First of all, have you added all the templates to all your styles?

From what I understand about the styles-templates things, you shouldn't alter anything in your php files in order to call the template of the particular style. The style is just a variable the user selects and then all his "views" of vB are rendered using that style. I have to assume that the template names do not change, from one style to the other, or else nothing would work in vB.

I would expect that in the last template, the links should be entered somewhere within the following code:

HTML Code:

        <td class="thead" style="font-weight:normal" align="$stylevar[right]">
                &nbsp;
                <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
        </td>

somewhere after &nbsp.

I am sorry I can't be of more help.

Rgds

bnn121 10-24-2004 03:35 PM

I have not added all the templates to all the styles yet. only two of them...the main defualt and the drown one.

ITs to bad the installer could not be moded to install the templtes to all styles with some sort of option in the installer...but doing it manully is a good learning expirence.

I will wait an see if anybody else has any ideas on this...I have all templates installed in the defualt template as well as template two. As I said before. I was told that we only use the postbit_legacy template so there mite be some issues with this template and the original files that need moded...dont know for sure.

I continue working on this...I could have very well missed something...all this code looks the same after awhile.

I just wanted to ad this

Warn.php?do=ViewWarnings&id=1

When I click on the view users warning button...I get the blank screen...but thats what I see in the url.

bnn121 10-24-2004 09:42 PM

Okay...I fianlly got all this style stuff figured out and sorted..I no have a working hack on all four styles...thanks for the direction...

Now...Seeing that this thread is four pages long...I got lost somewhere along the way..

I no I seen in one of the post in this thread that you can set this hack up to do the following

1) Allow all users to see this hack
2) Allow mods to view all users but only allow them to use this hack from within the forum they are modding.
3) Allow Supermods all access board wide
4) Only Admins can unban.

Like I said I seen this in one of the post...but I cant find the specific one I need.

Can somebody help me locate this mod or repost whats needed

Thanks

sv1cec 10-25-2004 03:49 AM

Quote:

Originally Posted by bnn121
Okay...I fianlly got all this style stuff figured out and sorted..I no have a working hack on all four styles...thanks for the direction...

Now...Seeing that this thread is four pages long...I got lost somewhere along the way..

I no I seen in one of the post in this thread that you can set this hack up to do the following

1) Allow all users to see this hack
2) Allow mods to view all users but only allow them to use this hack from within the forum they are modding.
3) Allow Supermods all access board wide
4) Only Admins can unban.

Like I said I seen this in one of the post...but I cant find the specific one I need.

Can somebody help me locate this mod or repost whats needed

Thanks

This thread is 27 pages long (not 4), so happy reading. All these issues are mentionned in previous posts.

Rgds

bnn121 10-25-2004 08:33 AM

LOL...not if you have it set to see 100 post per page...then its only four pages long.

Anyway...okay I'll do some reading...got to be in here somewhere.

sv1cec 10-25-2004 05:23 PM

Quote:

Originally Posted by bnn121
LOL...not if you have it set to see 100 post per page...then its only four pages long.

Anyway...okay I'll do some reading...got to be in here somewhere.

Ooops, sorry, you are right. Never assume anything in this world! LoL

moethelawn 10-28-2004 10:17 PM

Is there an uninstall script for the warning system to be totally removed? (If you don't run install_warn.php again to uninstall it - I have Warning v1.5)

There's nothing wrong with it, and it is a very good hack. All i'm doing is changing some stuff on the forums and I kinda want to remove it for now...


All times are GMT. The time now is 07:39 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
  • Page Generation 0.01643 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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