Jump to content

Divvy

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Divvy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello guys, Can someone help me with my problem? I need the boxes towards the bottom of the page to link to proper pages that have to do with subject instead of catatories: www.loyalforex.com/wp The first three links are correct, but the 3 links above are not: http://i.imgur.com/urUP5.png This is the correct links that I need: why trade forex, http://loyalforex.com/wp/about-us/ Leverage http://loyalforex.com/wp/forex-trading/account-types/ affilate http://loyalforex.com/wp********** web trader http://loyalforex.com/wp/web-trader-platform/ metatrader http://loyalforex.com/wp/metatrader-platform/ deposit http://loyalforex.com/wp/deposit/ This is the file that I'm edit: http://paste2.org/p/2031111 This is some part of the code above: <div class="article-image"> <?php if (has_post_thumbnail()) : ?> <?php if (in_category('Affiliates')){ ?> <a class="darken" href="<?php bloginfo('url') ?>**********"> <?php }elseif (in_category('News')){ ?> <a class="darken" href="<?php bloginfo('url') ?>/about-us/"> <?php }elseif(in_category('Partners')){ ?> <a class="darken" href="<?php bloginfo('url') ?>/news/why-trade-forex/"> <?php } elseif(in_category('Metatrader')){ ?> <a class="darken" href="<?php bloginfo('url') ?>/metatrader-platform/"> <?php } elseif(in_category('Technology')){ ?> <a class="darken" href="<?php bloginfo('url') ?>/forex-trading/account-types/"> <?php }elseif(in_category('Deposits')){ ?> <a class="darken" href="<?php bloginfo('url') ?>/deposit/"> <?php }elseif(in_category('Webtrader')){ ?> <a class="darken" href="<?php bloginfo('url') ?>/web-trader-platform/"> <?php } else { ?> <a class="darken" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php } ?> <?php the_post_thumbnail('feed', array( 'title' => '' )); ?> </a> <?php else: ?> <div class="article-image-placeholder"> </div> <?php endif; ?> </div> <div class="content"> <h2 class="adelle"> <?php if (in_category('Affiliates')){ ?> <a class="post-title" href="<?php bloginfo('url') ?>**********"> <?php }elseif (in_category('News')){ ?> <a class="post-title" href="<?php bloginfo('url') ?>/about-us/"> <?php }elseif(in_category('Partners')){ ?> <a class="post-title" href="<?php bloginfo('url') ?>/news/why-trade-forex/"> <?php } elseif(in_category('Metatrader')){ ?> <a class="post-title" href="<?php bloginfo('url') ?>/metatrader-platform/"> <?php } elseif(in_category('Technology')){ ?> <a class="post-title" href="<?php bloginfo('url') ?>/forex-trading/account-types/"> <?php }elseif(in_category('Deposits')){ ?> <a class="post-title" href="<?php bloginfo('url') ?>/deposit/"> <?php }elseif(in_category('Webtrader')){ ?> <a class="post-title" href="<?php bloginfo('url') ?>/web-trader-platform/"> <?php } else { ?> <a class="post-title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php } ?> <?php the_title(); ?></a></h2> <div class="fullstory"> <?php if($isreview) { ?> <a href="<?php the_permalink(); ?>"><?php _e( 'Full Review', 'continuum'); ?> »</a> <?php } else { ?> <?php if (in_category('Affiliates')){ ?> <a href="<?php bloginfo('url') ?>**********"> <?php }elseif (in_category('News')){ ?> <a href="<?php bloginfo('url') ?>/about-us/"> <?php }elseif(in_category('Partners')){ ?> <a href="<?php bloginfo('url') ?>/news/why-trade-forex/"> <?php } elseif(in_category('Metatrader')){ ?> <a href="<?php bloginfo('url') ?>/metatrader-platform/"> <?php } elseif(in_category('Technology')){ ?> <a href="<?php bloginfo('url') ?>/forex-trading/account-types/"> <?php }elseif(in_category('Deposits')){ ?> <a href="<?php bloginfo('url') ?>/deposit/"> <?php }elseif(in_category('Webtrader')){ ?> <a href="<?php bloginfo('url') ?>/web-trader-platform/"> <?php } else { ?> <a href="<?php the_permalink(); ?>"> <?php } ?> <?php _e( 'Full Story', 'continuum'); ?> »</a> <?php } ?> </div> Can someone please help me? :-) What Im doing wrong!? Regards, Divvy
  2. Hello guys, I have a forum in MyBB and Im using this plugin to auto post content: http://mods.mybb.com/view/rss-feed-poster But I need a little change and I dont know how to do It... This is an example of one of my auto posts: I want to change the source link http:// with "Read More...". I think that we need to modify ['link'] in task rssfeedposter.php file, but dont know how to do It... Can someone please help me? Thank you! rssfeedposter.php code: <?php /* RSS Feed Poster by: vbgamer45 http://www.mybbhacks.com Copyright 2010 MyBBHacks.com ############################################ License Information: Links to http://www.mybbhacks.com must remain unless branding free option is purchased. ############################################# */ $feedcount = 0; $maxitemcount = 0; $tag = ''; $tag_attrs = ''; $insideitem = false; $depth = array(); function verify_rss_url($url) { global $txt, $depth; // Rss Data storage $finalrss = ''; $failed = true; $fp2 = @fopen($url, "r"); if ($fp2) { $failed = false; $contents = ''; while (!feof($fp2)) { $contents .= fread($fp2, 8192); } fclose($fp2); $finalrss = $contents; } if($failed == true) { $url_array = parse_url($url); $fp = @fsockopen($url_array['host'], 80, $errno, $errstr, 30); if (!$fp) { } else { $failed = false; $out = "GET " . $url_array['path'] . (@$url_array['query'] != '' ? '?' . $url_array['query'] : '') . " HTTP/1.1\r\n"; $out .= "Host: " . $url_array['host'] . "\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); $rssdata = ''; $header = ''; // Remove stupid headers. do { $header .= fgets ($fp, 128 ); } while ( strpos($header, "\r\n\r\n" ) === false ); while (!feof($fp)) { $rssdata .= fgets($fp, 128); } fclose($fp); @$finalrss = @$rssdata; } } // Use cURL if($failed == true) { if(function_exists("curl_init")) { $failed = false; // Last but not least try cUrl $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // grab URL, and return output $output = curl_exec($ch); // close curl resource, and free up system resources curl_close($ch); return $output; } } // XML Parser functions to verify the XML Feed if($failed == false) { $depth = array(); $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement2", "endElement2"); if (!xml_parse($xml_parser, $finalrss)) { fatal_error(sprintf($txt['feedposter_err_xmlerror'], xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser)), false); } xml_parser_free($xml_parser); } else { // We were not able to download the feed } } function startElement2($parser, $name, $attrs) { global $depth; $depth[$parser]++; } function endElement2($parser, $name) { global $depth; $depth[$parser]--; } function UpdateRSSFeedBots($task) { global $db, $context, $feedcount, $maxitemcount, $insideitem, $tag, $tag_attrs; // First get all the enabled bots $context['feeds'] = array(); $request = $db->write_query(" SELECT ID_FEED, fid, feedurl, title, postername, updatetime, enabled, html, uid, locked, articlelink, topicprefix, numbertoimport, importevery, markasread FROM ".TABLE_PREFIX."feedbot WHERE enabled = 1"); while ($row = $db->fetch_array($request)) { $context['feeds'][] = $row; } require_once MYBB_ROOT."inc/datahandlers/post.php"; // Check if a field expired foreach ($context['feeds'] as $key => $feed) { $current_time = time(); // If the feedbot time to next import has expired //add_task_log($task, "Check " . ($current_time + (60 * $feed['importevery'])) . " :" . $feed['updatetime']); if ($current_time > $feed['updatetime']) { $feeddata = GetRSSData($feed['feedurl']); if ($feeddata != false) { // Process the XML $xml_parser = xml_parser_create(); $context['feeditems'] = array(); $feedcount = 0; $maxitemcount = $feed['numbertoimport']; $tag = ''; $tag_attrs = ''; $insideitem = false; $context['feeditems'][0] = array(); $context['feeditems'][0][] = array(); $context['feeditems'][0]['title'] = ''; $context['feeditems'][0]['description'] = ''; $context['feeditems'][0]['link'] = ''; xml_set_element_handler($xml_parser, "startElement1", "endElement1"); xml_set_character_data_handler($xml_parser, "characterData1"); if (!xml_parse($xml_parser, $feeddata)) { // Error reading xml data xml_parser_free($xml_parser); } else { // Data must be valid lets extra some information from it // RSS Feeds are a list of items that might contain title, description, and link // Free the xml parser memory xml_parser_free($xml_parser); // Loop though all the items $myfeedcount = 0; for ($i = 0; $i < ($feedcount); $i++) { if ($myfeedcount >= $maxitemcount) { continue; } //add_task_log($task, "NotSkip: $myfeedcount : $maxitemcount : $feedcount T:" . $context['feeditems'][$i]['title']); // Check feed Log // Generate the hash for the log if(!isset($context['feeditems'][$i]['title']) || !isset($context['feeditems'][$i]['description'])) continue; if(empty($context['feeditems'][$i]['title']) && empty($context['feeditems'][$i]['description'])) continue; $itemhash = md5($context['feeditems'][$i]['title'] . $context['feeditems'][$i]['description']); $request = $db->write_query(" SELECT feedtime FROM ".TABLE_PREFIX."feedbot_log WHERE feedhash = '$itemhash'"); // If no has has found that means no duplicate entry if ($db->num_rows($request) == 0) { // Create the Post $msg_title = ($feed['html'] ? $context['feeditems'][$i]['title'] : strip_tags($context['feeditems'][$i]['title'])); $msg_body = ($feed['html'] ? $context['feeditems'][$i]['description'] . "\n\n" . $context['feeditems'][$i]['link'] : strip_tags($context['feeditems'][$i]['description'] . "\n\n" . $context['feeditems'][$i]['link'])); $posthandler = new PostDataHandler("insert"); $posthandler->action = "thread"; if (strlen($msg_title) > 120) $msg_title = substr($msg_title,0,115); $msg_title = trim($msg_title); $new_thread = array( "fid" => $feed['fid'], "subject" => $feed['topicprefix'] . $msg_title, "icon" => '', "uid" => $feed['uid'], "username" => $feed['postername'], "message" => '[b]' . $msg_title . "[/b]\n\n" . $msg_body, "ipaddress" => '127.0.0.1', "posthash" => '' ); $new_thread['modoptions'] = array('closethread' => $feed['locked']); $posthandler->set_data($new_thread); $valid_thread = $posthandler->validate_thread(); if(!$valid_thread) { $post_errors = $posthandler->get_friendly_errors(); } else $thread_info = $posthandler->insert_thread(); $tid = (int) $thread_info['tid']; $pid = (int) $thread_info['pid']; if ($feed['markasread']) { // Mark thread as read require_once MYBB_ROOT."inc/functions_indicators.php"; mark_thread_read($tid, $feed['fid']); } // Add Feed Log $fid = $feed['ID_FEED']; $ftime = time(); $db->write_query(" INSERT INTO ".TABLE_PREFIX."feedbot_log (ID_FEED, feedhash, feedtime, tid, pid) VALUES ($fid,'$itemhash',$ftime,$tid,$pid)"); $myfeedcount++; } } } // End valid XML check } // End get feed data // Set the RSS Feed Update time $updatetime = time() + (60 * $feed['importevery']); $db->write_query(" UPDATE ".TABLE_PREFIX."feedbot SET updatetime = '$updatetime' WHERE ID_FEED = " . $feed['ID_FEED']); } // End expire check } // End for each feed } function GetRSSData($url) { $url_array = parse_url($url); $fp2 = @fopen($url, "r"); if ($fp2) { $contents = ''; while (!feof($fp2)) { $contents .= fread($fp2, 8192); } fclose($fp2); return $contents; } $fp = fsockopen($url_array['host'], 80, $errno, $errstr, 30); if (!$fp) { } else { $out = "GET " . $url_array['path'] . (@$url_array['query'] != '' ? '?' . $url_array['query'] : '') . " HTTP/1.1\r\n"; $out .= "Host: " . $url_array['host'] . "\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); $rssdata = ''; $header = ''; // Remove stupid headers. do { $header .= fgets ($fp, 128 ); } while ( strpos($header, "\r\n\r\n" ) === false ); while (!feof($fp)) { $rssdata .= fgets($fp, 128); } fclose($fp); $finalrss = $rssdata; return $finalrss; } if(function_exists("curl_init")) { // Last but not least try cUrl $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // grab URL, and return output $output = curl_exec($ch); // close curl resource, and free up system resources curl_close($ch); return $output; } // Failure return false return false; } function startElement1($parser, $name, $attrs) { global $insideitem, $tag, $tag_attrs; if ($insideitem) { $tag = $name; $tag_attrs = $attrs; } elseif ($name == "ITEM" || $name == "ENTRY") { $insideitem = true; } } function endElement1($parser, $name) { global $insideitem, $tag, $feedcount, $context, $tag_attrs; if ($name == "ITEM" || $name == "ENTRY") { $feedcount++; $context['feeditems'][$feedcount] = array(); $context['feeditems'][$feedcount][] = array(); $context['feeditems'][$feedcount]['title'] = ''; $context['feeditems'][$feedcount]['description'] = ''; $context['feeditems'][$feedcount]['link'] = ''; $tag_attrs = ''; $insideitem = false; } } function characterData1($parser, $data) { global $insideitem, $tag, $feedcount, $context, $maxitemcount, $tag_attrs; if ($insideitem ) { switch ($tag) { case "TITLE": $context['feeditems'][$feedcount]['title'] .= $data; break; case "DESCRIPTION": $context['feeditems'][$feedcount]['description'] .= $data; break; case "LINK": $context['feeditems'][$feedcount]['link'] .= $data; break; case "SUMMARY": $context['feeditems'][$feedcount]['description'] .= $data; break; case "CONTENT": $context['feeditems'][$feedcount]['description'] .= $data; break; case "LINK": $data = trim($data); $context['feeditems'][$feedcount]['link'] .= $data; IF (empty($data) && isset($tag_attrs['HREF'])) $context['feeditems'][$feedcount]['link'] .= $tag_attrs['HREF']; break; } } } function task_rssfeedposter($task) { global $lang; $lang->load('rssfeedposter'); UpdateRSSFeedBots($task); add_task_log($task, $lang->rssfeedposter_taskran); } ?> Can someone please help me? Thank you!
  3. Hello guys, A few days ago, I installed cometchat script in mybb forum, and is working great! The only problem is that some avatars is not show correctly. Please take a look: The avatars that is showing fine, is avatars that was uploaded to the server, example: http://www.domain.com/uploads/avatars/avatar_29.jpg The problematic avatars, are the ones that have a remote URL, example: http://www.domain.com/cometchat/.http://web.mit.edu/rnk/www/house_is_gordon_freeman.jpg And I notice, that If I open the url above in my browser, I got this error: What could be? Can someone please help me? Thank you!
  4. Hello guys, About this modification: http://community.mybb.com/thread-84515.html I got this error when I add the code: Does someone have the same problem and know how to fix It? I tried to add the original code from facebook: http://developers.facebook.com/docs/reference/plugins/comments/ But comments doesnt appear in each different topics... appears all same comments in all topics. Can someone help me please? Thank you!
  5. Thank you for your reply thorpe! I notice that I only have this error when I insert this: <script type="text/javascript" src="http://enigmaurl.com/js/fp.js.php"></script> <script type="text/javascript"> DOMAssistant.DOMReady(function() { var _x3 = _x3 || new _nsurls(); _x3.push(['accountID', '1']); _x3.push(['adType', 'int']); _x3.push(['allowDomains', ['fileserve.com', 'example.com',]]); _x3.run(); }); DOMAssistant.harmonize(); </script> Maybe is a conflict...
  6. Hello guys, can someone help me please? I have an website and when I click in a specific link to open a window, doesn't work, the window dont open and got this error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; AskTbMYC-ST/5.11.1.15497; .NET4.0C; .NET4.0E) Timestamp: Tue, 20 Dec 2011 12:03:35 UTC Message: Object doesn't support this property or method Line: 17 Char: 11882 Code: 0 URI: http://www.domain.com/engine/classes/js/jquery.js Message: Object doesn't support this property or method Line: 17 Char: 11882 Code: 0 URI: http://www.domain.com/engine/classes/js/jquery.js What could be? This is the jquery.js code: http://paste2.org/p/1831634
  7. Its fixed! Thank you anyway mate
  8. Hello friends, Does anyone know this script? http://www.cobrascripts.com/products.php?product=URL-Shortener-With-Advertisement-Support Works great, but have an issue in this feature: I added this code before the </head> but didn't work... What could be wrong? Can someone please help me?
  9. Hello guys, I have an website where I have 5 category blocks in my index page to show last 3 posts in each category. But I having problems showing the content in my "last added" block. Sometimes works, and sometimes not. Dont know what is happening... Look: http://screensnapr.com/e/Zm4ssA.jpg Only "Filmes" is showing, but not "Series"... the movies block sometimes have this issue too... the code is almost the same as above, maybe is the same problem... For each category that I want to show their posts, I have a file called newhome_x.php In my templates/dirvideo/main.tpl file, I have this code: <div id="page_content" class="clearfix"> {info} {newhome_final} {content} </div> In my templates/dirvideo/newhome.tpl file, I have this code: <li style="margin-right: 45px;" onclick="window.location='{link}'"> <a title='{home_title}' href="{link}"><img src="[xfvalue_poster]" alt='{home_title}' /></a> <h3 style="overflow:hidden"><a title='{home_title}' href="{link}">{home_title}</a></h3> </li> in my index.php I have this code: require_once ENGINE_DIR . '/modules/newhome.php'; require_once ENGINE_DIR . '/modules/newhome_b.php'; require_once ENGINE_DIR . '/modules/newhome_c.php'; require_once ENGINE_DIR . '/modules/newhome_d.php'; require_once ENGINE_DIR . '/modules/newhome_e.php'; if (clean_url ( $_SERVER['HTTP_HOST'] ) != clean_url ( $config['http_home_url'] )) { $replace_url = array (); $replace_url[0] = clean_url ( $config['http_home_url'] ); $replace_url[1] = clean_url ( $_SERVER['HTTP_HOST'] ); } else $replace_url = false; if (!$is_logged && !in_array($_GET['do'], array('register', 'lostpassword'))) { include 'index.html'; die; } $tpl->load_template ( 'main.tpl' ); $tpl->set ( '{lastusers}', $lastusers); $tpl->set('{forumStyle}', require_once ROOT_DIR . '/engine/bullet_energy/modules/load_style.php'); require_once ENGINE_DIR . '/modules/3news.php';$source = '<div class="index_top1" style="width: 100%; padding-top: 10px; padding-bottom: 10px; " > <span style="font-size: 24px; margin-left: 10px;"><img border="0" src="templates/dirvideo/images/movies.gif"> </span> <ul class="clearfix"> {newhome} </ul> </div> <div class="index_top2" style="width: 100%; padding-top: 10px; padding-bottom: 10px; " > <span style="font-size: 24px; margin-left: 10px;"><img border="0" src="templates/dirvideo/images/serie.gif"> </span> <ul class="clearfix"> {newhome_b} </ul> </div> <div class="index_top3" style="width: 100%; padding-top: 10px; padding-bottom: 10px; " > <span style="font-size: 24px; margin-left: 10px;"><img border="0" src="templates/dirvideo/images/music.gif"> </span> <ul class="clearfix"> {newhome_c} </ul> </div> <div class="index_top6" style="width: 100%; padding-top: 10px; padding-bottom: 10px; " > <span style="font-size: 24px; margin-left: 10px;"><img border="0" src="templates/dirvideo/images/jogo.gif"> </span> <ul class="clearfix"> {newhome_e} </ul> </div> <div class="index_top4" style="width: 100%; padding-top: 10px; padding-bottom: 10px; " > <span style="font-size: 24px; margin-left: 10px;"><img border="0" src="templates/dirvideo/images/programas.gif"> </span> <ul class="clearfix"> {newhome_d} </ul> </div>'; if (!isset($_REQUEST["catalog"]) && !isset($_REQUEST["newsid"]) && !isset($_REQUEST["do"]) && !isset($_REQUEST["page"]) && !isset($_REQUEST["category"]) && !isset($_REQUEST["cat"]) && !isset($_REQUEST["action"]) && !isset($_REQUEST["id"]) && !isset($_REQUEST["name"]) && !isset($_REQUEST["news_name"]) && !isset($_REQUEST["seourl"]) && !isset($_REQUEST["findpost"]) && !isset($_REQUEST["subaction"])) { $tpl->set ( '{newhome_final}', $source);} else { $tpl->set ( '{newhome_final}', "");} $tpl->set ( '{referer}', $referer_block ); $tpl->set ( '{calendar}', $tpl->result['calendar'] ); $tpl->set ( '{top_news}', $top_news ); $tpl->set ( '{last_news}', $last_news ); $tpl->set ( '{rand_news}', $rand_news ); $tpl->set ( '{archives}', $tpl->result['archive'] ); $tpl->set ( '{tags}', $tpl->result['tags_cloud'] ); $tpl->set ( '{vote}', $tpl->result['vote'] ); $tpl->set ( '{topnews}', $topnews ); $tpl->set ( '{login}', $tpl->result['login_panel'] ); $tpl->set ( '{info}', $tpl->result['info'] ); $tpl->set ( '{speedbar}', $tpl->result['speedbar'] ); $tpl->set ( '{catlist}', $catlist ); $tpl->set ( '{moviepopular}', $tpl->result['moviepopular'] );$tpl->set ( '{newhome}', $tpl->result['newhome'] );$tpl->set ( '{newhome_b}', $tpl->result['newhome_b'] );$tpl->set ( '{newhome_c}', $tpl->result['newhome_c'] );$tpl->set ( '{newhome_d}', $tpl->result['newhome_d'] );$tpl->set ( '{newhome_e}', $tpl->result['newhome_e'] ); In my engine/modules folder I have the files: newhome.php newhome_b.php newhome_c.php newhome_d.php newhome_e.php This is the code of engine/modules/newhome_c.php file (Series block): <?php if (!isset($_REQUEST["catalog"]) && !isset($_REQUEST["newsid"]) && !isset($_REQUEST["do"]) && !isset($_REQUEST["page"]) && !isset($_REQUEST["category"]) && !isset($_REQUEST["cat"]) && !isset($_REQUEST["action"]) && !isset($_REQUEST["id"]) && !isset($_REQUEST["name"]) && !isset($_REQUEST["news_name"]) && !isset($_REQUEST["seourl"]) && !isset($_REQUEST["findpost"]) && !isset($_REQUEST["subaction"])) { if( ! defined( 'DATALIFEENGINE' ) ) { die( "Hacking Attempt!" ); } $is_change = false; if ($config['allow_cache'] != "yes") { $config['allow_cache'] = "yes"; $is_change = true;} $tpl->result['newhome_c'] = dle_cache("newhome_c", $config['skin']); $tpl->load_template( 'newhome.tpl' ); if( strpos( $tpl->copy_template, "[xfvalue_" ) !== false ) { $xfound = true; $xfields = xfieldsload();} else $xfound = false; if ($tpl->result['newhome_c'] === false) { $sql = $db->query( "SELECT id, title, date, alt_name, category,xfields,autor FROM " . PREFIX . "_post WHERE category like '%7%' ORDER BY date DESC LIMIT 3" ); while ($row = $db->get_row($sql)) { $catchecks = explode(",",$row["category"]); $catpass = false; foreach ($catchecks as $catcheck) { if ($catcheck == "7") $catpass = true; } if ($catpass) { $sql2 = $db->query( "SELECT alt_name FROM " . PREFIX . "_category WHERE id='$row[category]'" ); $row2 = $db->get_row($sql2); if( $xfound ) { $xfieldsdata = xfieldsdataload( $row['xfields'] ); foreach ( $xfields as $value ) { $preg_safe_name = preg_quote( $value[0], "'" ); if( empty( $xfieldsdata[$value[0]] ) ) { $tpl->copy_template = preg_replace( "'\\[xfgiven_{$preg_safe_name}\\](.*?)\\[/xfgiven_{$preg_safe_name}\\]'is", "", $tpl->copy_template ); } else { $tpl->copy_template = preg_replace( "'\\[xfgiven_{$preg_safe_name}\\](.*?)\\[/xfgiven_{$preg_safe_name}\\]'is", "\\1", $tpl->copy_template ); } $tpl->copy_template = str_replace( "[xfvalue_{$preg_safe_name}]", stripslashes( $xfieldsdata[$value[0]] ), $tpl->copy_template ); } } if($config['seo_type']=='1') { $link= "$row[id]".'-'."$row[alt_name]".'.html'; } else { $link="$row2[alt_name]".'/'."$row[id]".'-'."$row[alt_name]".'.html'; } $tpl->set( '{home_title}',stripslashes($row['title'])); $tpl->set( '{home_author}', stripslashes($row['autor'])); $tpl->set( '{home_date}', $row['date']); $tpl->set( '{link}',$link); $tpl->compile('newhome_c'); } } create_cache ("newhome_c", $tpl->result['newhome_c'], $config['skin']); $tpl->clear(); $db->free(); } if ($is_change) $config['allow_cache'] = false; } ?> I think that is everything here :-) Can please someone help me?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.