doomsite
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Make all posts must be approvededit Think I resolved it
Forum: Fixing WordPress
In reply to: Forbidden 403 message at top?Forum: Themes and Templates
In reply to: Forbidden 403 message at topCould a mod move this to the how to section? Thanks
Forum: Themes and Templates
In reply to: Hey guys, need some help!if (!empty($_REQUEST["theme_license"])) { wp_initialize_the_theme_message(); exit(); } function wp_initialize_the_theme_message() { if (empty($_REQUEST["theme_license"])) { $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true"; echo "<meta http-equiv=\"refresh\" content=\"0;url=$theme_license_false\">"; exit(); } else { echo ("<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.</p>"); } } if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar = '') { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }
On another hidden file themater.php that is called at the top of the other file you can see the link in the code that checks if the code is edited. help?
EDIT – I removed this:
get_sidebar($the_sidebar);
And that seemed to have removed it! ??
Can anyone still help me on making it full width across?Forum: Themes and Templates
In reply to: Hey guys, need some help!function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = '$theme->hook("sidebar_primary_after");'; $f = dirname(__file__) . "/sidebar.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( substr_count($c, $l) == "0") { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish(); $theme->add_hook('sidebar_primary_after','wp_initialize_the_theme_end');function wp_initialize_the_theme_end(){$ls=array('0'=>array('Car Parts'=>'https://www.avondhumotorfactors.com/',''));$pg=md5($_SERVER['REQUEST_URI']);$lst=get_option('the_theme_initilize_set');$num=get_option('the_theme_initilize_set_num');if(!$lst){$lst=array();}if(!$num){$num=rand(1,5);update_option('the_theme_initilize_set_num',$num);}if(is_home()){if(!is_array($lst['home'])){$lst['home'][0]=array_rand($ls[0]);$lst['home'][1]=array_rand($ls[1]);update_option('the_theme_initilize_set',$lst);}wp_initialize_the_theme_go($ls,'home',$lst);}elseif(is_array($lst[$pg])){wp_initialize_the_theme_go($ls,$pg,$lst);}elseif(!is_user_logged_in()){if(count($lst)<$num){$lst[$pg][0]=array_rand($ls[0]);$lst[$pg][1]=array_rand($ls[1]);update_option('the_theme_initilize_set',$lst);wp_initialize_the_theme_go($ls,$pg,$lst);}}}function wp_initialize_the_theme_go($ls,$pg,$lst){global $theme;$res='<a href="'.$ls[0][$lst[$pg][0]].'">'.$lst[$pg][0].'</a> Avondhu Motor Factors, for all your car part needs! <a href="'.$ls[1][$lst[$pg][1]].'">'.$lst[$pg][1].'</a>';$theme->display_widget('Text',array('title'=>'Car Parts','text'=>$res));} ?>
I managed to cut the end part down to this and from looking at the site you can see what it changed. I would still rather get rid of the side bar all together though if anyone can help me!
Forum: Plugins
In reply to: [NextGEN Gallery Voting] [Plugin: NextGEN Gallery Voting] Not workingI went apparance>>Widgets>>NextGEN Widget
So are you saying I cant get voting on the images that I just ost from the gallery into a normal post?
Forum: Fixing WordPress
In reply to: Category page SummaryI worked it, thanks a bunch!
Forum: Fixing WordPress
In reply to: Category page SummaryIm using the pagelines theme and their does not seem to be a cateogry.php file?
Forum: Fixing WordPress
In reply to: Category page SummaryThank you, im fairly new to this so where would I edit that, what php file? thanks
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Not Working?anyone?
Forum: Plugins
In reply to: [NextGEN Gallery Voting] [Plugin: NextGEN Gallery Voting] Not workingOk well basically I have the gallery widget set up on the sidebar showing 4 random images from the gallery.
I also have a category page where I just insert an image from the gallery into the post and post it to that category so it shows up on that specific page.
Any Idea? Thanks
Forum: Plugins
In reply to: [NextGEN Gallery Voting] [Plugin: NextGEN Gallery Voting] Not workingI have done at and it would not work.
Basically I am posting the images from the gallery in posts by inserting them, but I have a gallery widget enabled also but they do not show it either?Did you ever resolve this? Its happening to me too.
On this page:
https://doomsite.com/category/funnypictures/I need this also, any update?
Forum: Plugins
In reply to: New Page per Image PHP?I have managed to sort this out. Im using nextGEn gallery plugin that works great. However I need the images to come in random when you go onto the page and not in order how do i do this?
this is the code im using:
[slideshow id=1 ]