vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

zackw 04-02-2012 09:44 PM

I have a small issue. The script outputs the links in source code with unencoded ampersands.
When viewing source I might see this:

....k.com/rbs_banner.php?id=4&userid=40847"....

But I want to see this:

....k.com/rbs_banner.php?id=4&userid=40847"....

The reason is because it won't validate in W3C. Can someone tell me what adjustment to make in php perhaps so those can be encoded with an htmlentities or something?

Thanks!

Videx 04-02-2012 11:40 PM

Quote:

Originally Posted by zackw (Post 2316142)
The reason is because it won't validate in W3C.

Sorry I don't know the answer. But a question: What advantage does validation in W3C give you? I mean, does it work as it is, and if so, why should you want to change it?

zackw 04-03-2012 02:39 PM

Quote:

Originally Posted by Videx (Post 2316178)
Sorry I don't know the answer. But a question: What advantage does validation in W3C give you? I mean, does it work as it is, and if so, why should you want to change it?

Because it's good to follow standards. And when it comes to encoding html entities, it's safer in terms of URL hack attempts and MySQL injections.
It's common and normal practice to always encode URLs. Plus there is the satisfaction of having valid markup.

I imagine it is a very small thing indeed to encode the URL before echoing it, which is why somebody might know what file needs the edit added.

Paul. 04-03-2012 11:15 PM

OK, I'm probably being very thick here.. but I am confuzzled.

addons
upload
product-rbs
Rotating Banner System-EN

The above looks fine.
But when I look in the 'addons' folder, I've no idea where to put the rbs_iframa.php file. :(

Then in the 'upload' folder, I know where to put the details of the 'admincp' folder and the 'includes' folder.. but where do the three other files go? rbs_banner.php - rbs_stats.php - rbs_wrapper

I've read the PDF but don't really understand it when it says place them in the forum home.

Videx 04-03-2012 11:27 PM

1) Don't screw with addons until you have it working. Then if you really need that iframe, go for it.
2) Don't over think it. Just rename 'uploads' to 'forum' (or wherever you have your forum installed), then in an FTP program just drop it on /public_html. Everything will go where it belongs.

jjdurrant 04-04-2012 01:52 PM

I installed and uploaded files but I am not seeing "Advertising" in admincp

Videx 04-04-2012 03:32 PM

Quote:

Originally Posted by jjdurrant (Post 2316691)
I installed and uploaded files but I am not seeing "Advertising" in admincp

It's supposed to be on the left pane just above Styles and Templates (vb4 only). If you can't find it anywhere, you should do some searches at vb.com and try to figure out why it's missing.

Paul. 04-04-2012 07:24 PM

Quote:

Originally Posted by Videx (Post 2316549)
1) Don't screw with addons until you have it working. Then if you really need that iframe, go for it.
2) Don't over think it. Just rename 'uploads' to 'forum' (or wherever you have your forum installed), then in an FTP program just drop it on /public_html. Everything will go where it belongs.

Thanks for this.
So when I go into my folder named 'forum', I just stick the three files there? ( rbs_banner.php - rbs_stats.php - rbs_wrapper )

I've installed odd plugins successfully in the past, but still manage to confuse myself!

Edit: I think I've failed..

I have this error message appearing at the very top of my forum:

Warning: strpos() [function.strpos]: Empty delimiter in [path]\includes\functions.php(7246) : eval()'d code on line 93

sonic83 04-04-2012 09:30 PM

Quote:

Originally Posted by Videx (Post 2315980)
This mod doesn't actually use vb much at all (except for the admincp page), so it works with all versions. Your original question was very confusing and made no sense, having to do with renaming folders or something.



Thanks for your responses.

Videx 04-05-2012 01:21 AM

Quote:

Originally Posted by Paul. (Post 2316784)
I have this error message appearing at the very top of my forum:

Warning: strpos() [function.strpos]: Empty delimiter in [path]\includes\functions.php(7246) : eval()'d code on line 93

That doesn't sound like an RBS error. But a site search (on 'Empty delimiter') turns up lots of hits here on vb.org and I imagine vb.com also. You're going to have to dig through some of those old threads and see what the problem is.

Yes, those files go in your forum root right next to register.php and forum.php.


All times are GMT. The time now is 01:54 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.02853 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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