Navigation
Last Seen Users
Billychouvaky00:37:36
Allenas00:53:43
souyts01:07:53
peterjohan1101:20:14
Shatum01:34:57
ern01:44:18
Jabel03:36:32
turet07:11:19
Joe Kriz08:03:29
megamind08:03:36

Members: 27,764
Newest: souyts
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [20 Votes]

7.00.xx
7.00.xx
8% [39 Votes]

7.01.xx
7.01.xx
8% [41 Votes]

7.02.xx
7.02.xx
81% [417 Votes]

Votes: 517
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

17-06-2013 04:03
info jadwal imsakiyah 2013 Thumb Up! semoga bermanfaat

16-06-2013 20:57

16-06-2013 20:56

16-06-2013 20:55

16-06-2013 20:55

16-06-2013 20:54

16-06-2013 05:39

16-06-2013 05:35

16-06-2013 05:25

16-06-2013 05:23

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
View Thread
Who is here? 1 guest(s)
 Print Thread
XHTML mod for modern mobiles
dothemath
New in version 5.9
* Russian locale.

New in version 5.8
* Add DB_SHOUTBOX definition to wap-maincore.php file.
* Fix smiley parse in wap-maincore.php file.

Please contribute and amend translations... Loving

The download file is available at the following addres:
Mobile mod for PHP-Fusion v7.02 download page

Unfortunately Diemux doesn't have the time to approve the last version, so here you can find only a older version:
A old version of Mobile mod for PHP-Fusion v7.02 download page
Now you can have a mobile version of your site:
PHP-Fusion on the go

theNoam open source community
 
Web
Diemux
Updated the download to latest version!

http://www.phpfus...mod_id=384
Isn't life beautiful they way it is?
Underground3k.com
 
Web
wheeler
Updated with the latest files mate and ive got the following:


Parse error: syntax error, unexpected ')' in /home/wwwstree/public_html/wap2/wap-maincore.php on line 460
Edited by NetriX on 12-02-2012 21:57
 
jekov
Thank's ,dothemath !
Very nice working mod. I use xhtml_mobile_mod_5.9v7.02 and my error log is:
wap2/wap-shouts.php
Undefined index: global_153 Line: 169
Undefined index: numofshouts Line: 178
Undefined index: global_156 Line: 201
wap2/wap-maincore.php
mysql_num_rows(): supplied argument is not a valid MySQL result resource Line: 233
Wap-shouts page show error mesage, but shuts are sending:
Notice: Use of undefined constant TRUE_PHP_SELF - assumed 'TRUE_PHP_SELF' in /home/a7176646/public_html/includes/error_handling_include.php on line 47
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
Edited by jekov on 05-02-2012 22:25
 
Web
dothemath
New in version 6.0
* Compatible with the changes made in version 7.02.04 .
* Fix bugs in wap-maincore.php file.
* Add Locales.
* Fix wap-Shout.php

Please contribute and amend translations... Loving

The download file is available at the following addres:
Mobile mod for PHP-Fusion v7.02 download page

Unfortunately Diemux doesn't have the time to approve the last version, so here you can find only a older version:
A old version of Mobile mod for PHP-Fusion v7.02 download page
Edited by dothemath on 10-02-2012 02:06
Now you can have a mobile version of your site:
PHP-Fusion on the go

theNoam open source community
 
Web
wheeler
Multiple erroes still mate on this, fresh install of php fusion 7.02 and with the files, still get

Parse error: syntax error, unexpected 'Wink' in /home/wwwstree/public_html/wap2/wap-maincore.php on line 460
 
jekov
Thank's ,dothemath !
Now, wap2 v6.0 mod is work without errors, but only after small corrections in wap-maincore.php to display smiles :
Download source  Code
460  $smiley_image = "<img src='".IMAGES.("smiley/".$smiley['smiley_text']).".gif' alt='".$smiley['smiley_text']."' style='vertical-align:middle;' />";
476  $smileys .= "<img src='".IMAGES.("smiley/".$smiley['smiley_text']).".gif' alt='".$smiley['smiley_text']."' onclick=\"insertText('".$textarea."', '".$smiley['smiley_code']."', '".$form."');\" />\n";



http://troyanovo....shouts.php Here in attache, is updated Bulgarian translation for xhtml_mobile_mod_6.0v7.02
jekov attached the following file:
bulgarian_1.rar [1.21kB / 41 Downloads]

Edited by jekov on 11-02-2012 05:17
 
Web
dothemath
New in version 6.1
* Fix bugs in wap-maincore.php file - thanks to jekov
* Improve Bulgarian locale - thanks to jekov

Please contribute and amend translations... Loving

The download file will be available after approval at the following addres:
PHPfusion-mods.net Mobile mod for PHP-Fusion v7.02 download page

or at:
Official Mobile mod for PHP-Fusion v7.02 download page
Edited by dothemath on 11-02-2012 07:55
Now you can have a mobile version of your site:
PHP-Fusion on the go

theNoam open source community
 
Web
NetriX
Updated the file to the latest version (6.1).

http://www.phpfus...mod_id=384

This mod is currently pending. You will not be able to download at this time. Please bare with us as the issue is being addressed and could take some time.
Edited by NetriX on 11-02-2012 14:18
 
Web
jekov
Hi, dothemath !
There still shows 'Fatal error: Call to undefined function makepagenav() in wap-members.php on line 175' & therefore, on members page is missing navigation links below:
Download source  Code
175  if ($rows > 20) echo "<div align='center' style='margin-top:5px;'>\n".makepagenav($_GET['rowstart'],20,$rows,3,FUSION_SELF.$aidlink."&amp;".$list_link."&amp;status=".$_GET['status']."&amp;")."\n</div>\n";



I have changed ($rows > 20) with ($total_rows > 20) and there appears navigation links below, but i think that's not so correct.
 
Web
NetriX
jekov wrote:
Hi, dothemath !
There still shows 'Fatal error: Call to undefined function makepagenav() in wap-members.php on line 175' & therefore, on members page is missing navigation links below:
Download source  Code
175  if ($rows > 20) echo "<div align='center' style='margin-top:5px;'>\n".makepagenav($_GET['rowstart'],20,$rows,3,FUSION_SELF.$aidlink."&amp;".$list_link."&amp;status=".$_GET['status']."&amp;")."\n</div>\n";



I have changed ($rows > 20) with ($total_rows > 20) and there appears navigation links below, but i think that's not so correct.


If I remember correctly, several functions where stripped when he edited the maincore.php file.

You'll need to add the following to the core.php/maincore.php file whichever it may be for this addon.

Download source  Code
// Making Page Navigation
if (!function_exists('makepagenav')) {
function makepagenav($start, $count, $total, $range = 0, $link = "", $getname = "rowstart") {
   global $locale;

   if ($link == "") { $link = FUSION_SELF."?"; }
   if (!preg_match("#[0-9]+#", $count) || $count == 0) return false;
   
   $pg_cnt = ceil($total / $count);
   if ($pg_cnt <= 1) { return ""; }

   $idx_back = $start - $count;
   $idx_next = $start + $count;
   $cur_page = ceil(($start + 1) / $count);

   $res = $locale['global_092']." ".$cur_page.$locale['global_093'].$pg_cnt.": ";
   if ($idx_back >= 0) {
      if ($cur_page > ($range + 1)) {
         $res .= "<a href='".$link.$getname."=0'>1</a>";
         if ($cur_page != ($range + 2)) {
            $res .= "...";
         }
      }
   }
   $idx_fst = max($cur_page - $range, 1);
   $idx_lst = min($cur_page + $range, $pg_cnt);
   if ($range == 0) {
      $idx_fst = 1;
      $idx_lst = $pg_cnt;
   }
   for ($i = $idx_fst; $i <= $idx_lst; $i++) {
      $offset_page = ($i - 1) * $count;
      if ($i == $cur_page) {
         $res .= "<span><strong>".$i."</strong></span>";
      } else {
         $res .= "<a href='".$link.$getname."=".$offset_page."'>".$i."</a>";
      }
   }
   if ($idx_next < $total) {
      if ($cur_page < ($pg_cnt - $range)) {
         if ($cur_page != ($pg_cnt - $range - 1)) {
            $res .= "...";
         }
         $res .= "<a href='".$link.$getname."=".($pg_cnt - 1) * $count."'>".$pg_cnt."</a>\n";
      }
   }

   return "<div class='pagenav'>\n".$res."</div>\n";
}
}




That should address the problem.

If you still have that error, ensure that the core.php/maincore.php files are required in the head of the script.

Download source  Code
<?php
require_once "maincore.php";
?>





Good Luck,
NetriX
 
Web
jekov
Thank's NetriX !
Your code is working correctly by inserting in wap-maincore.php. By the way, this code is presented in wap-maincore.php , starting from line 809 -859, but was inactive . Great !
In attache is updated Bulgarian translation for xhtml_mobile_mod_6.1v7.02
jekov attached the following file:
bulgarian_2.rar [1.16kB / 38 Downloads]

Edited by jekov on 12-02-2012 11:56
 
Web
wheeler
Any idea with the syntax error I posted, this is a good mod I've had it working fine in tge past, help appreciated
 
NetriX
wheeler wrote:
Multiple erroes still mate on this, fresh install of php fusion 7.02 and with the files, still get

Parse error: syntax error, unexpected ')' in /home/wwwstree/public_html/wap2/wap-maincore.php on line 460


Could you copy and paste all data from lines 450 to 470 so I can get a more detailed analysis of the problem.

I do not have access to the script at this time.

Thanks,
NetriX
Edited by NetriX on 12-02-2012 21:59
 
Web
jekov
Hi Guys!
In wap-gallery-in.php & web-gallery.php I have replaced thumb1 -with-> thumb2 and added resize width='270' for best view:
Download source  Code
echo "<tr><td class='blue4'><div class='center'><img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb2']."' width='270' alt='".$data['photo_title']."' /></div></td></tr>";



Edited by jekov on 13-02-2012 04:54
 
Web
afoster
Some of the posts in this thread make it sound as if the mod has been released, but the link shows that it is invalid.

Is the new version available now or not?
 
NetriX
afoster wrote:
Some of the posts in this thread make it sound as if the mod has been released, but the link shows that it is invalid.

Is the new version available now or not?

It's currently pending because of some issues involving the submission system. Once the developer gets online and submits the file again, it will be available.

Unless anyone has v6.1 source and would like to share here as an attachment, the mod remains unavailable for the time being.

Sorry for the inconvenience.

-NetriX
 
Web
dothemath
New in version 6.2
* Fix bugs in wap-maincore.php file

Please contribute and amend translations... Loving

The download file will be available after approval at the following addres:
PHPfusion-mods.net Mobile mod for PHP-Fusion v7.02 download page

and at:
Official Mobile mod for PHP-Fusion v7.02 download page
Now you can have a mobile version of your site:
PHP-Fusion on the go

theNoam open source community
 
Web
wheeler
NetriX wrote:
wheeler wrote:
Multiple erroes still mate on this, fresh install of php fusion 7.02 and with the files, still get

Parse error: syntax error, unexpected ')' in /home/wwwstree/public_html/wap2/wap-maincore.php on line 460


Could you copy and paste all data from lines 450 to 470 so I can get a more detailed analysis of the problem.

I do not have access to the script at this time.

Thanks,
NetriX


Hi

Here is the area you asked for, thanks for the help


Download source  Code
// Parse smiley bbcode
function parsesmileys($message) {
   global $smiley_cache;
   if (!preg_match("#(\[code\](.*?)\[/code\]|\[geshi=(.*?)\](.*?)\[/geshi\]|\[php\](.*?)\[/php\])#si", $message)) {
      if (!$smiley_cache) { cache_smileys(); }
      if (is_array($smiley_cache) && count($smiley_cache)) {
         foreach ($smiley_cache as $smiley) {
            $smiley_code = preg_quote($smiley['smiley_code'], '#');
            $smiley_image = "<img src='".IMAGES."smiley/".$smiley['smiley_text'])."' alt='".$smiley['smiley_text']."' style='vertical-align:middle;' />";
            $message = preg_replace("#{$smiley_code}#si", $smiley_image, $message);
         }
      }
   }
   return $message;
}

// Show smiley icons in comments, forum and other post pages
function displaysmileys($textarea, $form = "inputform") {
   global $smiley_cache;
   $smileys = ""; $i = 0;
   if (!$smiley_cache) { cache_smileys(); }
   if (is_array($smiley_cache) && count($smiley_cache)) {
      foreach ($smiley_cache as $smiley) {
         if ($i != 0 && ($i % 10 == 0)) { $smileys .= "<br />\n"; $i++; }
         $smileys .= "<img src='".IMAGES."smiley/".$smiley['smiley_text'])."' alt='".$smiley['smiley_text']."' onclick=\"insertText('".$textarea."', '".$smiley['smiley_code']."', '".$form."');\" />\n";
      }
   }
   return $smileys;
}


 
NetriX
@Wheeler - You're not using the latest version.

Download: v6.2 @ http://phpfusion-...mod_id=384

If that fails, try this:

// Parse smiley bbcode
function parsesmileys($message) {
global $smiley_cache;
if (!preg_match("#(\[code\](.*?)\[/code\]|\[geshi=(.*?)\](.*?)\[/geshi\]|\[php\](.*?)\[/php\])#si", $message)) {
if (!$smiley_cache) { cache_smileys(); }
if (is_array($smiley_cache) && count($smiley_cache)) {
foreach ($smiley_cache as $smiley) {
$smiley_code = preg_quote($smiley['smiley_code'], '#');
$smiley_image = "<img src='".IMAGES("smiley/".$smiley['smiley_text']).".gif' alt='".$smiley['smiley_text']."' style='vertical-align:middle' />";
$message = preg_replace("#{$smiley_code}#si", $smiley_image, $message);
}
}
}
return $message;
}

Edited by NetriX on 13-02-2012 13:16
 
Web
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
photogallery sub-albums mod help Coding Support 5 28-05-2013 01:37
WAP mod for PHP-Fusion v.7 PHP-Fusion Modifications 35 21-05-2013 07:53
Avatar mod or infusion Mod Request 9 05-03-2013 03:18
[MOD]User Gold System for [MOD]FusionBoard3 PHP-Fusion Modifications 2 05-03-2013 02:33
4 mod updates, 2 translations released PHP-Fusion Modifications 1 04-03-2013 06:06