Quote:
Originally Posted by dartho
Most of the options would not be compatible with other styles as my Mobile style is coded with this in mind. Which aspects did you wish to apply to your other mobile style?
Edit: Sorry - I jest re-read your post. You could do this by manually editing 2 plugins newreply_post_start and newthread_post_start
Change the code from
Code:
if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n".$vbulletin->options['mo37_post_text']."\n";
}
to
Code:
if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n".$vbulletin->options['mo37_post_text']."\n";
}
if ($styleid==XX) {
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via iPhone" ."\n";
}
Change the XX to be the style ID of your iPhone style and "Posted via iPhone" to what ever message you want, or $vbulletin->options['mo37_post_text'] if you want the same message applied as from other mobile devices
|
Thanks

i did it.
but i wanted the UA too so here's what i did for those who'll be asking in the future
Quote:
if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "____________________ Wirelessly Posted (" . $vbulletin->options['mo37_post_text']. ") " . "\n";
}
if (($styleid==152) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "____________________ Wirelessly Posted (" . $vbulletin->options['mo37_post_text']. ") " . "\n";
}
|
Thanks for this perfect mod!!