vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Creating a line break after x images (https://vborg.vbsupport.ru/showthread.php?t=181882)

Opserty 06-08-2008 06:58 PM

Woah! You need to uncomment my code... otherwise its not going to be executed is it? :p

steadicamop 06-08-2008 07:20 PM

I've tried it again, and again, with the code uncommented this time, it still bypasses and executes the part after it (basically, it doesn't show the images, just goes straight to the next step, as if you had completed the image selection).

Would it be of any use if I gave you access to my admin control panel so you can test this for yourself?

Cheers

Jason

Opserty 06-08-2008 07:22 PM

I just noticed an extra bracket:
Code:

if(($i % 5) == 0))
Remove the bracket in red.

steadicamop 06-08-2008 07:40 PM

Thank you!! Thank you!!

Works perfectly now ... like a charm, I had a few issues of my own ... wrong variables, but ironed those out and now it's perfect, thank you again, I wil make sure your name is credited for your assistance!

Cheers

Jason

--------------- Added [DATE]1212958533[/DATE] at [TIME]1212958533[/TIME] ---------------

Now I just have to figure out how to thread a damn sewing machine!!!

Dismounted 06-09-2008 03:26 AM

Quote:

Originally Posted by steadicamop (Post 1544321)
I will admit my brother in law did code most of this, he's a LOT more clued up with php than I am .... but he explained about the curly braces and why they weren't there, I understand with them there they make the code easier to understand but on this lot, they need to be missing for the code to execute.

Curly braces will never (yes - I said it) stop code executing - provided they are matched up properly.


All times are GMT. The time now is 02:20 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.01100 seconds
  • Memory Usage 1,722KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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